import hyRequest from '@/service'

// 通知公告-分页
export const getNoticeList = (form?: any) => {
  return hyRequest.post({
    url: '/village/notice/page',
    data: form,
    isFormData: true
  })
}

// 通知公告-新增
export const addNotice = (form?: any) => {
  return hyRequest.post({
    url: '/village/notice/insert',
    data: form
  })
}

// 通知公告-编辑
export const editNotice = (form?: any) => {
  return hyRequest.post({
    url: '/village/notice/update',
    data: form
  })
}

// 通知公告-删除
export const delNotice = (form?: any) => {
  return hyRequest.post({
    url: '/village/notice/delete',
    params: form
  })
}

// 通知公告-批量删除
export const delNoticeBatch = (form?: any) => {
  return hyRequest.post({
    url: '/village/notice/deleteBatch',
    params: form
  })
}
